import Vue from 'vue'
import VueRouter from 'vue-router' 

import Home from '../views/home'
import About from '../views/about'

Vue.use(VueRouter)

let router = new VueRouter({
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:Home
        },
        {
            path:'/about',
            component:About
        }
    ],
    linkActiveClass:'color',
    mode:'history'
})

export default router